﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WJ.Infrastructure.DDD
{
    public class ResultMessage
    {
        public ResultMessage()
        {
            Error = new Dictionary<string, string>();
            Success = true;
        }
        public Guid EntityId { get; set; }
        public Dictionary<string, string> Error { get; set; }
        public string Message { get; set; }
        public ErrorType errorType { get; set; }

        public bool Success { get; set; }
    }

    public enum ErrorType
    {
        DataExist
    }

}
